package com.zuoye.day03;



public class AccountTest {
    public static void main(String[] args) {
        //创建对象(实例化)

        // 有参 账户类型 0:储蓄账户
        Account acc1 = new Account(123,"姜",11111,18726486163L,3000,0);

        //无参 账户类型 1：信用账户
        Account acc2 = new Account();
        acc2.setAccNo(23);
        acc2.setAccName("八重");
        acc2.setAccPassword(1234234);
        acc2.setAccTelno(18767653670L);
        acc2.setAccBalance(9999);
        acc2.setAccType(1);

        //原信息
        System.out.println("账户账号:" +acc1.getAccNo() + "  账户姓名:" + acc1.getAccName() + "  账户密码:" + acc1.getAccPassword() + "  账户手机号:"
                + acc1.getAccTelno() + "  账户余额:" + acc1.getAccBalance()+ "  账户类型:" + acc1.getAccType());

        System.out.println("账户账号:" +acc2.getAccNo() + "  账户姓名:" + acc2.getAccName() + "  账户密码:" + acc2.getAccPassword() + "  账户手机号:"
                + acc2.getAccTelno() + "  账户余额:" + acc2.getAccBalance()+ "  账户类型:" + acc2.getAccType());

        //调用方法
        System.out.println(acc1.depoist(500));
        System.out.println(acc2.withdraw(1111111));

        //修改手机号
        acc2.setAccTelno(182289123L);
        System.out.println(acc2.getAccTelno());

    }
}
